<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../include/base.jsp" %>
<!DOCTYPE HTML>
<html>
<head>
	<meta charset="UTF-8">
	<link rel="stylesheet" href="<%=basePath%>css/bootstrap.min.css">
  <link rel="stylesheet" href="<%=basePath%>css/font-awesome.css">
  <link rel="stylesheet" href="<%=basePath%>css/style.css">
	<style type="text/css">
		body{
			padding-top: 60px;
		}
	</style>
	<title>Kaishengit Todo-编辑计划</title>
</head>
<body>
	<div class="navbar navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container">
          <a class="brand" style="color:#fff" href="#">Kaishengit Todo</a>
          <div class="btn-group pull-right">
            <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
               <i class="icon-user"></i>　樊凯
              <span class="caret"></span>
            </a>
            <ul class="dropdown-menu">
              <li><a href="#"><i class="icon-cog"></i>　密码设置</a></li>
              <li class="divider"></li>
              <li><a href="#"><i class="icon-off"></i>　安全退出</a></li>
            </ul>
          </div>
        </div>
      </div>
    </div>
    <div class="container">
    	<div class="row">
    		<div class="span12">
			 <div class="widget">
				<div class="widget-header">
					<i class="icon-plus"></i><h3>编辑计划</h3>
				</div>
				<div class="widget-content">
					<form class="form-horizontal" action="<%=basePath %>todo/update.action" method="post" id="myform">
					  <fieldset>
						<div class="control-group">
						  <label class="control-label" for="input01">计划内容 <span class="req-tag">*</span></label>
						  <div class="controls">
						  	<input type="hidden" name="todo.id" value="${todo.id }"/>
						  	<input type="hidden" name="todo.userId" value="${todo.userId }"/>
						  	<input type="hidden" name="todo.success" value="${todo.success}"/>
							<input type="text" name="todo.todo" id="" value="${todo.todo }" class="span5 required" />
						  </div>
						</div>
						<div class="form-actions">
							<button class="btn btn-primary btn-large">保存</button>
							<button class="btn btn-large">取消</button>
						</div>
					  </fieldset>
					</form>			
				</div>
			 </div>
            
            
        </div>
    	</div>

    </div>
    <div id="footer">
      <div class="container">       
        <hr>
        <p>© 2012 凯盛软件.</p>
      </div> <!-- /container -->
    </div>
    <script src="<%=basePath%>js/jquery.js" type="text/javascript"></script>
	<script type="text/javascript" src="<%=basePath%>js/jquery.validate.js"></script>
    <script src="<%=basePath%>js/bootstrap.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    	$(document).ready(function() {
    		$("#myform").validate();
    	});
    	
    </script>
</body>
</html>